package cz.idsv.web.mvc.model.service;

import java.util.Collection;

import org.springframework.dao.DataAccessException;

import cz.idsv.web.mvc.model.entity.PersonTypeEntity;



/**
 * PersonType Service interface.
 * 
 * @author Jan Borzensky
 */
public interface PersonTypeService {

    /**
     * Find PersonType.
     */
    public Collection<PersonTypeEntity> findPersonType() throws DataAccessException;
    
    /**
     * Saves personType.
     */
    public void save(PersonTypeEntity personTypeEntity);
    
    
    /**
     * Delete personType.
     */
    public void delete(PersonTypeEntity personTypeEntity);
    
    /**
     * Find personType by id.
     */
    public PersonTypeEntity findPersonTypeById(Integer id) throws DataAccessException;
    /**
     * Find PersonType by role.
     */
    public Collection<PersonTypeEntity> findPersonTypeByRole(String role) throws DataAccessException;
   
}

